	.text
	.global main
main:
	addi	r1,r0,#4
	addi	r2,r0,#5
	addi	r3,r0,#7
	sw	0(r14),r1
	addi	r1,r0,#3
	sw	4(r14),r2
	sw	8(r14),r3
	sw	12(r14),r1

 	lw r1,0(r14)
	lw r2,4(r14)
	lw r3,8(r14)
	lw r4,12(r14)
	add r5,r2,r3
	sub r6,r4,r3

	add r7,r1,r3
	sub r7,r7,r2
	mult r7,r7,r3
	sub r7,r7,r5
	div  r7,r7,r6
 
	movi2fp f1,r7
	cvti2d	f2,f1

	mult r1,r5,r6
	lw r2,12(r14)
	mult r1,r1,r2

	trap 0
